import Layout from '../views/layout/Layout'
const _import = require('./_import_' + process.env.NODE_ENV)

const OperatorMenu = {
  path: '/operative',
  component: Layout,
  name: '营销中心',
  meta: {
    title: '营销中心',
    icon: 'tab'
  },
  authority: 'operative',
  // hidden: true,
  children: [{
    path: 'marketMonitor',
    meta: {
      title: '营销监控中心',
      icon: 'tab'
    },
    component: _import('biz/operative/marketMonitor/index'),
    name: '营销监控中心',
    authority: 'marketMonitor'
  }, {
    path: 'marketCouponRev',
    meta: {
      title: '定向红包领取',
      icon: 'tab'
    },
    component: _import('biz/operative/marketCouponRev/index'),
    name: '定向红包领取',
    authority: 'marketCouponRev'
  }, {
    path: 'discountStatistics',
    meta: {
      title: '营销对账明细',
      icon: 'tab'
    },
    component: _import('biz/operative/discountStatistics/index'),
    name: '营销对账明细',
    authority: 'discountStatistics'
  }, {
    path: 'activity',
    meta: {
      title: '活动管理',
      icon: 'tab'
    },
    component: _import('biz/operative/activity/index'),
    name: '活动管理',
    authority: 'activity'
  }, {
    path: 'integral',
    meta: {
      title: '积分管理',
      icon: 'tab'
    },
    component: _import('biz/operative/integral/index'),
    name: '积分管理',
    authority: 'integral',
    authFlag: false,
    hidden: true
  }, {
    path: 'coupon',
    meta: {
      title: '红包管理',
      icon: 'tab'
    },
    component: _import('biz/operative/coupon/index'),
    name: '红包管理',
    authority: 'coupon',
    authFlag: false,
    hidden: true
  }, {
    path: 'activityDetail',
    meta: {
      title: '活动详情',
      icon: 'tab'
    },
    component: _import('biz/operative/activityDetail/index'),
    name: '活动详情',
    authority: 'activityDetail',
    authFlag: false,
    hidden: true
  }, {
    path: 'job',
    meta: {
      title: '定时任务',
      icon: 'tab'
    },
    component: _import('biz/operative/job/index'),
    name: '定时任务',
    authority: 'job'
  }, {
    path: 'jobLog',
    meta: {
      title: '日志列表',
      icon: 'tab'
    },
    component: _import('biz/operative/jobLog/index'),
    name: '日志列表',
    authority: 'jobLog',
    authFlag: false,
    hidden: true
  }]
}
export default OperatorMenu
